isChecked

abstract fun isChecked(): Boolean

Returns true if the input DOM element with the type 'checkbox' or 'radio' is selected. Use this method only with input elements with type 'checkbox' or 'radio'.

Throws

when the type attribute value of the element is not 'checkbox' or 'radio'

when this instance is closed